package com.hang.mongoEntity;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Document("CommentImgEntity")
@Data
@ToString
public class CommentImgEntity {
    @Indexed(unique = true)
    @Field("_id")
    private String mongoId;

    @Field("imgUrlList")
    private List<String> imgUrlList;

    public CommentImgEntity() {
    }

    public CommentImgEntity(String mongoId, List<String> imgUrlList) {
        this.mongoId = mongoId;
        this.imgUrlList = imgUrlList;
    }
}
